//
//  CityModel.m
//  Food choices
//
//  Created by xalo on 16/2/26.
//  Copyright © 2016年 张广斌. All rights reserved.
//

#import "CityModel.h"

@implementation CityModel

-(void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@"city_id"]) {
        self.city_id = [NSString stringWithFormat:@"%ld",[value integerValue]];
    }
    
    if ([key isEqualToString:@"city_name"]) {
        self.city_name = [value stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    }
    
    if ([key isEqualToString:@"short_name"]) {
        self.short_name = [value stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    }
    
    if ([key isEqualToString:@"city_pinyin"]) {
        self.city_pinyin = (NSString *)value;
    }
    
    if ([key isEqualToString:@"short_pinyin"]) {
        self.short_pinyin = (NSString *)value;
    }
}





@end
